package com.yang.service;

import java.util.List;

import com.yang.dao.PhoneBookDao;
import com.yang.entity.PhoneBook;

public class PhoneBookService {

	private PhoneBookDao pbd=new PhoneBookDao();

	public List<PhoneBook> findByGroupIdAndUserId(String userid, String groupid) {
		return pbd.findByGroupIdAndUserId(userid,groupid);
	}

	public boolean insertRole(String roleid, String userid, String groupid) {
		return pbd.insertRole(roleid,userid,groupid);
	}

	public boolean insertPB(String pbid, String name, String code,
			String userid, String groupid, String othername) {
		return pbd.insertPB(pbid,name,code,userid,groupid,othername);
	}

}
